package com.shop.user.conf.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
    public static String BASE_FORMAT = "yyyy-MM-dd HH:mm:ss:SSS";

    public static Date newNowDate() {
        return new Date();
    }

    public static String newFormatDate(String fomat) {
        SimpleDateFormat dateFormat = new SimpleDateFormat(fomat);
        Date date = new Date();
        return dateFormat.format(date);
    }

    public static String newBaseFormatDate() {
        return newFormatDate(BASE_FORMAT);
    }
}
